package com.tqw.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.tqw.entity.BasePojo;
import lombok.Data;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * 商品表pojo类
 * @author Alex
 */
@Data
@Accessors(chain = true)
@TableName("item")
public class Item extends BasePojo {

    @TableId(type = IdType.AUTO)
    private Integer id;

    private String title;     //名称
    private String sellPoint; //卖点
    private BigDecimal price;    //价格
    private String fontImage; //前台展示的图片信息(1张)
    private Integer grandfatherCatId; //该商品所属的一级菜单的分类
    private Integer catId;    //归属类别

    private Character status;   //状态信息 0下架 1在售中 2已卖出

    private Integer userId;   //归属用户
}
